package com.sangeng.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class PageUserInfoVO implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
//    @JsonProperty("userName")
    private String username;
//    @JsonProperty("nickName")
    private String nickname;

    private String email;
//    @JsonProperty("phoneNumber")
    private String phone;

    private String avatar;

    private Long roleId;

    private String roleName;

    /**
     * 0 - 禁用
     * 1 - 启用
     */
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
